package com.webtest.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;
import java.time.Instant;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/8/13 12:27
 */
public class ParentTag extends SimpleTagSupport {
    private String name = "atguigu";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void doTag() throws JspException, IOException {
        System.out.println("父标签的标签处理器name:" + name + " at " + Instant.now());
        getJspBody().invoke(null);
    }
}
